package com.salary.entity.dto;

import java.util.ArrayList;
import java.util.List;

import com.salary.entity.SalaryFormula;

public class CountDayDTO {
	private Integer countDay;
	
	public Integer getCountDay() {
		return countDay;
	}

	public void setCountDay(Integer countDay) {
		this.countDay = countDay;
	}

	

	public CountDayDTO(Integer countDay) {
		super();
		this.countDay = countDay;
	}

	public CountDayDTO() {
		super();
	}
	public static List<CountDayDTO> getcountDayDTO(SalaryFormula formula) {
		List<CountDayDTO> results = new ArrayList<CountDayDTO>();
		if(formula!=null) {
			for(Integer i = 1;i<=28;i++) {
				
				if(i!=formula.getCountDay()) {
					CountDayDTO dto = new CountDayDTO(i);
					results.add(dto);
				}
			}
		}
		return results;
	}
}
